
from gupiao.ZhangTingHuoSiTian import ZhangTingHuoSiTian

def HuoQuSuoYouPiaoHuoSiTian(ti):
    year = ti[0:4]
    file = f"C:/Users/Administrator/Desktop/fupan/zhangtingbanshouban/{year}/{ti}.txt"
    all_stocks=[]
    with open(file,mode='r') as f:
        files=f.readlines()
        for file in files:
            a=file.split(',')
            if a[0] in ["涨停板","炸板",'\n','涨停板\n','炸板\n']:
                continue
            else:
                print(a)
                all_stocks.append([a[0],a[1]])
    f.close()
    print(all_stocks)
    print(len(all_stocks))
    return all_stocks


if __name__ == '__main__':
    ti="20240726"
    HuoQuSuoYouPiaoHuoSiTian(ti)